#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/12/4 12:22
# @Author  : leon yan
# @Site    : 
# @File    : am400Plc_Alarm.py
# @Software: PyCharm

import Globalist as gl


def rdPlcAlarm():
    alarmInfo = []
    if not gl.global_var["statusVar"]["bConnected"]:
        alarmInfo.append("未连接成功")
    else:
        alarmInfo = []
        if gl.global_var["statusVar"]["bAlarm"]:
            alarmInfo.append("线体报警中!")
        else:
            alarmInfo.append("线体正常")

    return alarmInfo



